package com.macro.mall.mapper;

import com.macro.mall.model.BasicKeyRegion;
import com.macro.mall.model.BasicKeyRegionExample;
import com.macro.mall.query.RegionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BasicKeyRegionMapper {
    long countByExample(BasicKeyRegionExample example);

    int deleteByExample(BasicKeyRegionExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BasicKeyRegion record);

    int insertSelective(BasicKeyRegion record);

    List<BasicKeyRegion> selectByExample(BasicKeyRegionExample example);

    BasicKeyRegion selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BasicKeyRegion record, @Param("example") BasicKeyRegionExample example);

    int updateByExample(@Param("record") BasicKeyRegion record, @Param("example") BasicKeyRegionExample example);

    int updateByPrimaryKeySelective(BasicKeyRegion record);

    int updateByPrimaryKey(BasicKeyRegion record);

    List<BasicKeyRegion> list(String areaName);

    List<BasicKeyRegion> findAll(RegionQuery query);
}